<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>电子档案管理系统</title>
    <link rel="stylesheet" href="../css/font-awesome.min.css">
    <link rel="stylesheet" href="../bootstrap-3.3.4/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/common.css">
    <script src="../js/jquery-1.11.3.js"></script>

    <script src="../bootstrap-3.3.4\dist\js\bootstrap.min.js"></script>
    <style type="text/css">
        body {
            background: rgba(0, 0, 0, 0);
            color: #fff;
        }

        th{
            background-color: #286090;
            border: none;
            color: white;
        }
    </style>


</head>
<body>
<h2>用户管理</h2>
<form>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <table class="table">
                    <thead>
                    <tr>
                        <th>
                            编号
                        </th>
                        <th>
                            用户帐号
                        </th>
                        <th>
                            用户姓名
                        </th>
                        <th>
                            性别
                        </th>
                        <th>
                            部门
                        </th>
                        <th>
                            联系方式
                        </th>
                        <th>
                            用户组
                        </th>
                        <th>修改资料</th>
                    </tr>
                    </thead>
                    <tbody>


                    <%--           private int accountId;
                               private String accountAc;
                               private String accountContact;
                               private Integer accountGender;
                               private String accountNickname;
                               private String accountPsw;
                               private int accountWorkNum;
                               private AmDepartment accountDepartment;
                               private AmRole accountRole;--%>
                    <s:iterator value="amAccountArrayList" id='account'>

                        <tr>
                            <td><s:property value="accountId"/></td>
                            <td><s:property value="accountAc"/></td>
                            <td><s:property value="accountNickname"/></td>
                            <s:if test="accountGender==1">
                                <td>男</td>
                            </s:if>
                            <s:else>
                                <td>女</td>
                            </s:else>

                            <td><s:property value="accountDepartment.getDepartmentName()"/></td>

                            <td><s:property value="accountContact"/></td>

                            <td><s:property value="accountRole.getRoleName()"/></td>

                            <td>

                                <a href="${pageContext.request.contextPath }/modifyaccount?amAccountBemodifyId=<s:property value="accountId" />">编辑</a>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a href="${pageContext.request.contextPath }/deleteaccount?amAccountBemodifyId=<s:property value="accountId" />">删除</a>


                            </td>
                        </tr>
                    </s:iterator>

                    </tbody>
                </table>

</form>

<br>

</body>
</html>